#include"stack.h"
void StackInit(stack& st) {
	st.arr = NULL;
	st.capacity = st.size = 0;
}
void CreatArr(stack& st) {
	if (st.capacity == st.size) {
		int newcapacity = st.capacity == 0 ? 4 : st.capacity * 2;
		TypeData* tmp = (TypeData*)realloc(st.arr, sizeof(TypeData) * newcapacity);
		if (tmp == nullptr) {
			perror("realloc fail");
			exit(1);
		}
		
	}
}
void StackPush(stack& st, TypeData x) {

}